<form action="" method="post" name="adminForm">
	<table class="adminlist">
		<thead>	
			<tr>
				<th width="5%">
					<input type="checkbox" name="toggle" value=""  onclick="checkAll(<?php echo $this->TOTAL_ROW;?>);" />
				</th>
				<th class="title" width="10%">
					<?php echo JHtml::_('grid.sort', 'Name', 'name', $this->FORM_ORDER_DIR, $this->FORM_ORDER); ?>
				</th>	
				<th class="title" width="15%">
					<?php echo JHtml::_('grid.sort', 'User Name', 'username', $this->FORM_ORDER_DIR, $this->FORM_ORDER); ?>
				</th>					
				<th class="title" width="15%" >
					<?php echo JHtml::_('grid.sort', 'Email', 'email', $this->FORM_ORDER_DIR, $this->FORM_ORDER); ?>
				</th>			
				<th class="title" width="15%">
					<?php echo JHtml::_('grid.sort', 'Group', 'g_title', $this->FORM_ORDER_DIR, $this->FORM_ORDER); ?>							 
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="14">
					<?php echo $this->LIST_FOOTER_PAV;?>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php if($this->TOTAL_ROW) {
					$i = 0;
					foreach($this->dbrow as $key=>$value) {
					 	$checked = JHTML::_('grid.checkedout', $value, $i );
					 	$css_row = $i%2 ? 'row0':'row1'; 
			?>
						<tr class="<?=$css_row?>">
							<td align="center"><?php echo $checked;?></td>
							
							<td align="center">
								<a href="<?php echo JRoute::_('index.php?option=com_manager&task=edit&c=userpim&cid[]='.$value->id)?>" title="<?php echo $value->name;?>">
									<?php echo $value->name;?>
								</a>
							</td>
							<td align="center">
								<?php echo $value->username;?>
							</td>
							<td align="center">
								<?php echo $value->email;?>
							</td>
							<td align="center">
								<?php echo $value->g_title;?>
							</td>
							
						</tr>
			<?php
						$i++;
					}
				} 
			?>	
		</tbody>
	</table>
			
	<input type="hidden" name="option" value="com_manager" />
	<input type="hidden" name="c" value="userpim" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->FORM_ORDER;?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->FORM_ORDER_DIR;?>" />
	<?php echo $this->FORM_TOKEN;?>
</form>
